package com.nanjia.boot.product.spec.group.converter;

import com.nanjia.boot.product.spec.group.model.entity.SpecGroup;
import com.nanjia.boot.product.spec.group.model.form.SpecGroupForm;
import org.mapstruct.Mapper;

/**
 * 商品规格组对象转换器
 *
 * @author 周洋
 * @since 2025-07-09 15:30
 */
@Mapper(componentModel = "spring")
public interface SpecGroupConverter{

    SpecGroupForm toForm(SpecGroup entity);

    SpecGroup toEntity(SpecGroupForm formData);
}